package com.cskaoyan.service.wx;

import com.cskaoyan.bean.*;
import com.cskaoyan.bean.wxbean.WxGoodsDetailBean.CommentWx;
import com.cskaoyan.bean.wxbean.WxGoodsDetailBean.SpecificationWx;
import com.cskaoyan.bean.wxbean.WxGoodsDetailBean.WxGroupon;

import java.util.List;

/**
 * Created by Enzo Cotter on 2020/10/8.
 */
public interface WxGoodsDetailService {
    Goods queryOneById(Integer goodsId);

    List<Attribute> getAttributeByGoodsId(Integer goodsId);

    Brand getBrandById(Integer brandId);

    List<CommentWx> getCommentsByGoodsId(Integer goodsId);

    int getCommentCountByGoodsId(Integer goodsId);

    List<Issue> getAllIssue();

    List<Product> queryByGoodsId(Integer goodsId);

    List<SpecificationWx> querySpecificationWxByGoodsId(Integer goodsId);

    int verifyCollectByUserIdAndGoodsId(Integer goodsId, Integer userId);
}
